package renguanyu.app.codebuilder.util;


import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;

public class CliBoardUtil {

    public static void copyString(String content){
        Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
        Transferable transferable= new StringSelection(content);
        clipboard.setContents(transferable,null);
    }

}
